package com.elective.courseselect.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elective.courseselect.enums.CharacterType;
import lombok.Data;

import java.io.Serializable;

/**
 * 学生性格、课程表标签
 * 
 * @author lee
 * @email 943204006@qq.ccom
 * @date 2021-09-04 19:23:06
 */
@Data
// 特殊表名
@TableName("`character`")
public class CharacterEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 标签名
	 */
	private String label;

	/**
	 * 0 性格标签 1 课程标签
	 */
	private CharacterType type;


	/**
	 * 0 性格标签 1 课程标签
	 */
	@TableField(exist = false)
	private String typeName;
}
